package com.bw.bargain.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 砍价商品表
 * 
 * @author Hao_YunKai
 * @email 2745578447@qq.com
 * @date 2022-03-10 19:02:50
 */
@Data
@TableName("bargain_activity")
public class BargainEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 砍价商品主键
	 */
	@TableId
	@JsonSerialize(using = ToStringSerializer.class)
	private Long bargainId;
	/**
	 * 商品主键
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long goodsId;
	/**
	 * 商品名称
	 */
	private String goodsName;
	/**
	 * 商品图片
	 */
	private String goodsImg;
	/**
	 * 商品标题
	 */
	private String goodsTitle;
	/**
	 * 商品价格
	 */
	private BigDecimal goodsPrice;
	/**
	 * 砍价库存
	 */
	private BigDecimal stockCount;
	/**
	 * 开始时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createDate;
	/**
	 * 结束时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date endDate;
	/**
	 * 低价
	 */
	private BigDecimal floorPrice;
	/**
	 * 需要砍多少刀
	 */
	private Integer knifeCount;
	/**
	 * 每刀最多砍多少
	 */
	private BigDecimal knifePrice;
	/**
	 * 描述
	 */
	private String bargainDescribe;

}
